package com.example.victory.swagger.model;

import java.util.Objects;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
import io.swagger.annotations.ApiModelProperty;
import org.springframework.validation.annotation.Validated;

/**
 * ApiRequestClickCollectData
 */
@Validated
@javax.annotation.Generated(value = "io.swagger.codegen.languages.SpringCodegen", date = "2021-04-26T10:50:39.083+08:00")

public class ApiRequestClickCollectData   {
  @JsonProperty("customerId")
  private String customerId = null;

  @JsonProperty("isStore")
  private String isStore = null;

  /**
   * 类型 CUSTOMER:我的客户列表；SAVE:新增客户列表；BUSINESS：业务机会列表
   */
  public enum TypeEnum {
    CUSTOMER("CUSTOMER"),
    
    SAVE("SAVE"),
    
    BUSINESS("BUSINESS");

    private String value;

    TypeEnum(String value) {
      this.value = value;
    }

    @Override
    @JsonValue
    public String toString() {
      return String.valueOf(value);
    }

    @JsonCreator
    public static TypeEnum fromValue(String text) {
      for (TypeEnum b : TypeEnum.values()) {
        if (String.valueOf(b.value).equals(text)) {
          return b;
        }
      }
      return null;
    }
  }

  @JsonProperty("type")
  private TypeEnum type = null;

  public ApiRequestClickCollectData customerId(String customerId) {
    this.customerId = customerId;
    return this;
  }

  /**
   * 客户号
   * @return customerId
  **/
  @ApiModelProperty(example = "10", value = "客户号")


  public String getCustomerId() {
    return customerId;
  }

  public void setCustomerId(String customerId) {
    this.customerId = customerId;
  }

  public ApiRequestClickCollectData isStore(String isStore) {
    this.isStore = isStore;
    return this;
  }

  /**
   * 是否收藏；1-收藏;0-取消收藏
   * @return isStore
  **/
  @ApiModelProperty(value = "是否收藏；1-收藏;0-取消收藏")


  public String getIsStore() {
    return isStore;
  }

  public void setIsStore(String isStore) {
    this.isStore = isStore;
  }

  public ApiRequestClickCollectData type(TypeEnum type) {
    this.type = type;
    return this;
  }

  /**
   * 类型 CUSTOMER:我的客户列表；SAVE:新增客户列表；BUSINESS：业务机会列表
   * @return type
  **/
  @ApiModelProperty(example = "CUSTOMER", value = "类型 CUSTOMER:我的客户列表；SAVE:新增客户列表；BUSINESS：业务机会列表")


  public TypeEnum getType() {
    return type;
  }

  public void setType(TypeEnum type) {
    this.type = type;
  }


  @Override
  public boolean equals(java.lang.Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    ApiRequestClickCollectData apiRequestClickCollectData = (ApiRequestClickCollectData) o;
    return Objects.equals(this.customerId, apiRequestClickCollectData.customerId) &&
        Objects.equals(this.isStore, apiRequestClickCollectData.isStore) &&
        Objects.equals(this.type, apiRequestClickCollectData.type);
  }

  @Override
  public int hashCode() {
    return Objects.hash(customerId, isStore, type);
  }

  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class ApiRequestClickCollectData {\n");
    
    sb.append("    customerId: ").append(toIndentedString(customerId)).append("\n");
    sb.append("    isStore: ").append(toIndentedString(isStore)).append("\n");
    sb.append("    type: ").append(toIndentedString(type)).append("\n");
    sb.append("}");
    return sb.toString();
  }

  /**
   * Convert the given object to string with each line indented by 4 spaces
   * (except the first line).
   */
  private String toIndentedString(java.lang.Object o) {
    if (o == null) {
      return "null";
    }
    return o.toString().replace("\n", "\n    ");
  }
}

